package com.ruoyi.com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.OperateBasicForm;
import com.ruoyi.common.core.domain.entity.ComMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公共菜单Mapper接口
 *
 * @author sunye
 * @date 2024-09-26
 */
public interface ComMenuMapper extends BaseMapper<ComMenu>
{

    List<ComMenu> selectMenuTreeAll(@Param("deptId") Long deptId,@Param("systemParentId") String systemParentId);


    List<ComMenu> selectMenuTreeByUserId(@Param("roleIds") Long[] roleIds,@Param("deptId") Long deptId,@Param("systemParentId") String systemParentId);

    List<Long> selectMenuListByRoleId(Long roleId);

    List<ComMenu> selectMenuList(ComMenu menu);

    List<ComMenu> selectMenuListByRoleIds(Long[] roleIds);

    String selectMenuNameById(String parentMenuId);

}
